package com.wangjinhai.service;

import com.wangjinhai.fallback.UserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: 王金海
 * @Description:
 * @Date: Created by Administrator on 2018/8/14.
 * @Modified By:
 */
@FeignClient(value = "spring-cloud-server-user",fallback = UserServiceFallback.class)
@Component
public interface UserService {
    @GetMapping("sayHi")
    String sayHi(@RequestParam(value = "message") String message);
}
